import java.util.Scanner;

public class CircularTest {
    public static void main(String[] args) {
        Circular c = new Circular();
        double p = 3.14;//Π的值
        Scanner input = new Scanner(System.in);
        System.out.println("请输入x的值");
        c.x = input.nextInt();
        System.out.println("请输入y的值");
        c.y = input.nextInt();

        while (true) {
            if (c.x == c.y) {
                c.radius = c.x;
                c.perimwter = 2 * p * c.radius;
                c.theMeasureOfArea = p * c.radius * c.radius;
                break;

            } else {
                System.out.println("请重新输入x，y值");
                break;
            }

        }
        c.work();

    }
}
